#include "StockDataManager.h"
#include "MinKLineData.h"
#include <assert.h>

CStockDataManager::CStockDataManager(void)
{
}

CStockDataManager::~CStockDataManager(void)
{
}

bool CStockDataManager::ConnectorOpen( ACE_INET_Addr& addr )
{
	return true;
}

bool CStockDataManager::AcceptorOpen( uint32 u2ConnectorID )
{
	return true;
}

bool CStockDataManager::ConnectorClose( ACE_INET_Addr& addr )
{
	return true;
}

bool CStockDataManager::AcceptorClose( uint32 u2ConnectorID )
{
	return true;
}

bool CStockDataManager::PutMessage(ACE_Message_Block* pmb)
{
	return true;
}

bool CStockDataManager::SetServerManager( IServerManager* pConnectManager )
{
	return true;
}

bool CStockDataManager::SetClientManager( IClientManager* pConnectManager )
{
	return true;
}

bool CStockDataManager::Init()
{
	CMinKLineData *pTmp = new CMinKLineData();
	pTmp->Init();
	m_pMinKLine = dynamic_cast<IFinHistoryDayData*>(pTmp);
	assert(m_pMinKLine != NULL);
	return true;
}

bool CStockDataManager::Start()
{
	return false;
}

bool CStockDataManager::Close()
{
	delete m_pMinKLine;
	m_pMinKLine = NULL;
	return true;
}
